package com.zs4sdk.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.common.library.util.ActivityHelper;
import com.zs4gamesdk.R;

/**
 * Created by Administrator on 2018/6/5.
 */
//com.zs4sdk.activity.Zs4GamePhoneCheckActivity
//手机号码验证
public class Zs4GamePhoneCheckActivity extends Zs4GameRetrievePasswordActivityBase {
    private String mPhoneNumber = "";
    protected void initView(){
        setTopTitle(ActivityHelper.getStringResId("zs4game_phone_check"));
        setViewClickEvent(this, ActivityHelper.getIdResId("zs4gameviewid_mMessageBtn_act_retrieve_textmessage"),
                ActivityHelper.getIdResId("zs4gameviewid_mSubmitView_act_retrieve_password"));
    }
    protected void setMyContentView(){
        setContentView(ActivityHelper.getLayoutResId("zs4game_act_retrieve_password"));
        initReferences();
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = getIntent();
        if(intent != null){
            mPhoneNumber = intent.getStringExtra("phone");
            int style = intent.getIntExtra("classStyle",1);
            if(style == 2){//1重置密码2重新绑定电话
                cls = Zs4GameRebindPhoneActivity.class;
            }
        }
        //TextView textView = findView(Button.class, ActivityHelper.getIdResId("tv_zs4game_current_phone"));
        TextView textView = (TextView)findViewById(R.id.tv_zs4game_current_phone);
        textView.setText(mPhoneNumber);
    }

    public String getPhoneNumb(){
        return mPhoneNumber;
    }
}
